package com.starblink.basic.style.demo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import com.starblink.basic.style.databinding.ActivitySytleDemoBinding
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

class StyleDemoActivity : AppCompatActivity() {

    lateinit var binding: ActivitySytleDemoBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivitySytleDemoBinding.inflate(layoutInflater)
        setContentView(binding.root)

//        binding.lottie.setAnimation("lottie/load_more_anim.json")
        binding.lottie.setAnimation("lottie/black_bg_load.json")
        binding.button.setOnClickListener {
            binding.lottie.playAnimation()
        }
    }

}